package com.tarena.lbs.activity.dao.repository;

import com.github.pagehelper.PageInfo;
import com.tarena.lbs.activity.pojo.po.ActivityPO;
import com.tarena.lbs.activity.pojo.query.ActivityQuery;

import java.util.Date;
import java.util.List;

public interface ActivityRepository {

    ActivityPO getActivityById(Integer id);

    PageInfo<ActivityPO> pageList(ActivityQuery query);

    void updateStatus(Integer id, Integer status);

    void delete(Integer id);

    void saveActivity(ActivityPO activityPO);

    void updateActivity(ActivityPO activityPO);

    List<ActivityPO> findNeedStatusUpdateActivities(Date date, Date now);
}
